package csc.daonjpa.java.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import csc.daonjpa.java.dao.AccountDAO;
import csc.daonjpa.java.domain.Account;
import csc.daonjpa.java.domain.Customer;

/**
 * This is a controller for home page when user first accesses the application
 * @author nvu3
 *
 */

@Controller
public class HomeController {
	/**
	 * Returns a list of accounts
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/")
	public String getAccountList(Model model) {
		return "index";
	}
}
